<?php
function widget_mostcommented_register() {
function widget_mostcommented($args) {
          extract($args);
      ?>
<?php echo $before_widget;
		echo $before_title;		
		echo $widget_name; 
		echo $after_title; ?>
      <ul class="sidebarList">
         <?php mdv_most_commented(); ?>
      </ul>
              <?php echo $after_widget; ?>
      <?php
      }
      register_sidebar_widget('My Unique Widget',
          'widget_mostcommented');
  register_sidebar_widget('Most Commented','widget_mostcommented');}
add_action('init', widget_mostcommented_register);
?>
